package com.wangwen.wechatmp.dao;

import com.wangwen.wechatmp.dao.base.BaseDao;
import com.wangwen.wechatmp.model.UserInfo;
import com.wangwen.wechatmp.dao.base.BaseDao;
import com.wangwen.wechatmp.model.UserInfo;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface UserInfoDao extends BaseDao<UserInfo,Long> {

    UserInfo findByOpenId(String openId);

    UserInfo findByCardIdAndCardCode(String cardId, String cardCode);

    List<UserInfo> findByPhone(String phone);

}